//Written by Richard Lewis aka Trixmoto (c) 2007

var cActivex = 0;
var cButton = 0;
var cDockablepanel = 0;
var cDropdown = 0;
var cEdit = 0;
var cForm = 0;
var cCheckbox = 0;
var cLabel = 0;
var cPanel = 0;
var cRadiobutton = 0;
var cSpinedit = 0;
var cTrackbar = 0;
var cTransppanel = 0;
var cUnknown = 0;
var cOptionSheet = 0;

function uiActivex(par,comp,alig,anch,name,enab,heig,hint,left,maxh,maxw,minh,minw,top,visi,widt) {
  cActivex++;
  this.onam = "Activex"+cActivex;
  this.type = "act";
  this.prnt = par;
  this.comp = comp;
  this.alig = alig;
  this.anch = anch;
  this.clih = heig-28;
  this.cliw = widt-8;
  this.name = name;
  this.enab = enab;
  this.heig = heig;
  this.hint = hint;
  this.left = left;
  this.maxh = maxh;
  this.maxw = maxw;
  this.minh = minh;
  this.minw = minw;
  this.top  = top;
  this.visi = visi;
  this.widt = widt;
  this.ocli = "";
  this.ores = "";
  this.kids = null;  
}

function uiButton(par,canc,capt,defa,mres,func,uses,alig,anch,name,enab,heig,hint,left,maxh,maxw,minh,minw,top,visi,widt) {
  cButton++;
  this.onam = "Button"+cButton;
  this.type = "but";
  this.prnt = par;
  this.canc = canc;
  this.capt = this.onam;
  this.defa = defa;
  this.mres = mres;
  this.func = func;
  this.uses = uses;
  this.anch = anch;
  this.clih = heig-28;
  this.cliw = widt-8;
  this.name = name;
  this.enab = enab;
  this.heig = heig;
  this.hint = hint;
  this.left = left;
  this.maxh = maxh;
  this.maxw = maxw;
  this.minh = minh;
  this.minw = minw;
  this.top  = top;
  this.visi = visi;
  this.widt = widt;
  this.ocli = "";
  this.ores = "";
  this.oclk = "";
  this.kids = null;
}

function uiDockablepanel(capt,dock,pers,alig,anch,name,enab,heig,hint,left,maxh,maxw,minh,minw,top,visi,widt) {
  cDockablepanel++;
  this.onam = "DockablePanel"+cDockablepanel;
  this.type = "doc";
  this.prnt = null;
  this.capt = capt;
  this.dock = dock;
  this.pers = pers;
  this.alig = alig;
  this.anch = anch;
  this.clih = heig-28;
  this.cliw = widt-8;
  this.name = name;
  this.enab = enab;
  this.heig = heig;
  this.hint = hint;
  this.left = left;
  this.maxh = maxh;
  this.maxw = maxw;
  this.minh = minh;
  this.minw = minw;
  this.top  = top;
  this.visi = visi;
  this.widt = widt;
  this.ocli = "";
  this.ores = "";
  this.oclo = "";
  this.odoc = "";
  this.kids = new Array();
}

function uiDropdown(par,itms,itmi,func,uses,styl,text,alig,anch,name,enab,heig,hint,left,maxh,maxw,minh,minw,top,visi,widt) {
  cDropdown++;
  this.onam = "DropDown"+cDropdown;
  this.type = "drp";
  this.prnt = par;
  this.itms = itms;
  this.itmi = itmi;
  this.func = func;
  this.uses = uses;
  this.styl = styl;
  this.text = text;  
  this.alig = alig;
  this.anch = anch;
  this.clih = heig-28;
  this.cliw = widt-8;
  this.name = name;
  this.enab = enab;
  this.heig = heig;
  this.hint = hint;
  this.left = left;
  this.maxh = maxh;
  this.maxw = maxw;
  this.minh = minh;
  this.minw = minw;
  this.top  = top;
  this.visi = visi;
  this.widt = widt;
  this.ocli = "";
  this.ores = "";
  this.osel = "";
  this.kids = null;
}

function uiEdit(par,text,alig,anch,name,enab,heig,hint,left,maxh,maxw,minh,minw,top,visi,widt) {
  cEdit++;
  this.onam = "Edit"+cEdit;
  this.type = "edt";
  this.prnt = par;
  this.text = text;
  this.alig = alig;
  this.anch = anch;
  this.clih = heig-28;
  this.cliw = widt-8;
  this.name = name;
  this.enab = enab;
  this.heig = heig;
  this.hint = hint;
  this.left = left;
  this.maxh = maxh;
  this.maxw = maxw;
  this.minh = minh;
  this.minw = minw;
  this.top  = top;
  this.visi = visi;
  this.widt = widt;
  this.ocli = "";
  this.ores = "";
  this.kids = null;
}

function uiForm(bord,capt,posi,save,stay,alig,anch,name,enab,heig,hint,left,maxh,maxw,minh,minw,top,visi,widt) {
  cForm++;
  this.onam = "Form"+cForm;
  this.type = "frm";
  this.prnt = null;
  this.bord = bord;
  this.capt = capt;
  this.posi = posi;
  this.save = save;
  this.stay = stay;
  this.alig = alig;
  this.anch = anch;
  this.clih = heig-28;
  this.cliw = widt-8;
  this.name = name;
  this.enab = enab;
  this.heig = heig;
  this.hint = hint;
  this.left = left;
  this.maxh = maxh;
  this.maxw = maxw;
  this.minh = minh;
  this.minw = minw;
  this.top  = top;
  this.visi = visi;
  this.widt = widt;
  this.ocli = "";
  this.ores = "";
  this.oclo = "";
  this.kids = new Array();
}

function uiCheckbox(par,capt,chkd,alig,anch,name,enab,heig,hint,left,maxh,maxw,minh,minw,top,visi,widt) {
  cCheckbox++;
  this.onam = "CheckBox"+cCheckbox;
  this.type = "chk";
  this.prnt = par;
  this.capt = capt;
  this.chkd = chkd;
  this.alig = alig;
  this.anch = anch;
  this.clih = heig-28;
  this.cliw = widt-8;
  this.name = name;
  this.enab = enab;
  this.heig = heig;
  this.hint = hint;
  this.left = left;
  this.maxh = maxh;
  this.maxw = maxw;
  this.minh = minh;
  this.minw = minw;
  this.top  = top;
  this.visi = visi;
  this.widt = widt;
  this.ocli = "";
  this.ores = "";
  this.kids = null;
}

function uiLabel(par,algn,auto,capt,mult,alig,anch,name,enab,heig,hint,left,maxh,maxw,minh,minw,top,visi,widt) {
  cLabel++;
  this.onam = "Label"+cLabel;
  this.type = "lbl";
  this.prnt = par;
  this.algn = algn;
  this.auto = auto;
  this.capt = capt;
  this.mult = mult;
  this.alig = alig;
  this.anch = anch;
  this.clih = heig-28;
  this.cliw = widt-8;
  this.name = name;
  this.enab = enab;
  this.heig = heig;
  this.hint = hint;
  this.left = left;
  this.maxh = maxh;
  this.maxw = maxw;
  this.minh = minh;
  this.minw = minw;
  this.top  = top;
  this.visi = visi;
  this.widt = widt;
  this.ocli = "";
  this.ores = "";
  this.kids = null;
}

function uiPanel(par,alig,anch,name,enab,heig,hint,left,maxh,maxw,minh,minw,top,visi,widt) {
  cPanel++;
  this.onam = "Panel"+cPanel;
  this.type = "pan";
  this.prnt = par;
  this.alig = alig;
  this.anch = anch;
  this.clih = heig-28;
  this.cliw = widt-8;
  this.name = name;
  this.enab = enab;
  this.heig = heig;
  this.hint = hint;
  this.left = left;
  this.maxh = maxh;
  this.maxw = maxw;
  this.minh = minh;
  this.minw = minw;
  this.top  = top;
  this.visi = visi;
  this.widt = widt;
  this.ocli = "";
  this.ores = "";
  this.kids = new Array();
}

function uiRadiobutton(par,capt,chkd,alig,anch,name,enab,heig,hint,left,maxh,maxw,minh,minw,top,visi,widt) {
  cRadiobutton++;
  this.onam = "RadioButton"+cRadiobutton;
  this.type = "rad";
  this.prnt = par;
  this.capt = capt;
  this.chkd = chkd;
  this.alig = alig;
  this.anch = anch;
  this.clih = heig-28;
  this.cliw = widt-8;
  this.name = name;
  this.enab = enab;
  this.heig = heig;
  this.hint = hint;
  this.left = left;
  this.maxh = maxh;
  this.maxw = maxw;
  this.minh = minh;
  this.minw = minw;
  this.top  = top;
  this.visi = visi;
  this.widt = widt;
  this.ocli = "";
  this.ores = "";
  this.kids = null;
}

function uiSpinedit(par,maxv,minv,valu,alig,anch,name,enab,heig,hint,left,maxh,maxw,minh,minw,top,visi,widt) {
  cSpinedit++;
  this.onam = "SpinEdit"+cSpinedit;
  this.type = "spn";
  this.prnt = par;
  this.maxv = maxv;
  this.minv = minv;
  this.valu = valu;  
  this.alig = alig;
  this.anch = anch;
  this.clih = heig-28;
  this.cliw = widt-8;
  this.name = name;
  this.enab = enab;
  this.heig = heig;
  this.hint = hint;
  this.left = left;
  this.maxh = maxh;
  this.maxw = maxw;
  this.minh = minh;
  this.minw = minw;
  this.top  = top;
  this.visi = visi;
  this.widt = widt;
  this.ocli = "";
  this.ores = "";
  this.kids = null;
}

function uiTrackbar(par,hori,maxv,minv,valu,alig,anch,name,enab,heig,hint,left,maxh,maxw,minh,minw,top,visi,widt) {
  cTrackbar++;
  this.onam = "TrackBar"+cTrackbar;
  this.type = "bar";
  this.prnt = par;
  this.hori = hori;
  this.maxv = maxv;
  this.minv = minv;
  this.valu = valu;  
  this.alig = alig;
  this.anch = anch;
  this.clih = heig-28;
  this.cliw = widt-8;
  this.name = name;
  this.enab = enab;
  this.heig = heig;
  this.hint = hint;
  this.left = left;
  this.maxh = maxh;
  this.maxw = maxw;
  this.minh = minh;
  this.minw = minw;
  this.top  = top;
  this.visi = visi;
  this.widt = widt;
  this.ocli = "";
  this.ores = "";
  this.kids = null;
}

function uiTransppanel(par,alig,anch,name,enab,heig,hint,left,maxh,maxw,minh,minw,top,visi,widt) {
  cTransppanel++;
  this.onam = "TranspPanel"+cTransppanel;
  this.type = "tra";
  this.prnt = null;
  this.alig = alig;
  this.anch = anch;
  this.clih = heig-28;
  this.cliw = widt-8;
  this.name = name;
  this.enab = enab;
  this.heig = heig;
  this.hint = hint;
  this.left = left;
  this.maxh = maxh;
  this.maxw = maxw;
  this.minh = minh;
  this.minw = minw;
  this.top  = top;
  this.visi = visi;
  this.widt = widt;
  this.ocli = "";
  this.ores = "";
  this.kids = new Array();
}

function uiOptionSheet(heig,hint,left,pari,top,visi,widt) {
  cOptionSheet++;
  this.onam = "Sheet"+cOptionSheet;
  this.type = "opt";
  this.prnt = null;
  this.heig = heig;
  this.hint = hint;  
  this.left = left;
  this.pari = pari;  
  this.top  = top;
  this.visi = visi;
  this.widt = widt;  
  this.slab = this.onam;
  this.uses = "";
  this.init = "Init"+this.onam;
  this.save = "Save"+this.onam;    
  this.kids = new Array();
}